home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: undergrad.math.uwaterloo.ca!jyetse
- From: jyetse@undergrad.math.uwaterloo.ca (Eric)
- Subject: Re: How do I write gets() function that checks for boundaries?
- Originator: jyetse@undergrad.math.uwaterloo.ca
- Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
- Message-ID: <ApcQxQpxJEXd088yn@undergrad.math.uwaterloo.ca>
- Date: Sat, 9 Mar 1996 18:13:20 GMT
- References: <313FDB9F.7455@cyberus.ca>
- Nntp-Posting-Host: lhopital.uwaterloo.ca
- Organization: University of Waterloo
-
- In article <313FDB9F.7455@cyberus.ca>, MC <mcardinal@cyberus.ca> wrote:
- >I want to write my own gets() function that will check string size so that it doesn't accept more
- >characters than my declared string variable. Any ideas?
-
- Look up the ANSI C function fgets(). It does what you want.
- Hope this helps.
-
- Eric
-